IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cms_sp_MediaFileDelete]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[cms_sp_MediaFileDelete]
GO
create procedure [dbo].[cms_sp_MediaFileDelete]
(
@Id int
)
as
	delete from dbo.MediaFiles
	where  MediaFileId = @Id
GO

